import java.util.Arrays;

public class Main {
    public static void main(String[] args) {
        int [] num ={5,1,2,9,6,4,3,7};
        Arrays.sort(num);
        System.out.println(Arrays.toString(num));
    }
}


